package com.example;

public class Day2LeapYear {
    public static void main(String[] args) {
        int count = 0;
        for(int years = 101; years <= 2100; years++){
            if((years % 4 == 0 && years % 100 != 0) || (years % 400 == 0)){
                System.out.println((count % 10 != 0) ? years + " " : years + "\n");
                count++;
            }
        }
        System.out.println("The quantity of leap years is " + count);
    }
}
